PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / 2004-11-27-InvalidConstantExpr.c
blobee8642fa3aa231e403dd7dccb49ffb6ab072312c
1 // RUN: %llvmgcc %s -S -o - | not grep {foo\\* sub}
2 // This should not produce a subtrace constantexpr of a pointer
3 struct foo {
4 int Y;
5 char X[100];
6 } F;
8 int test(char *Y) {
9 return Y - F.X;