PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git] / test / FrontendC / weak_constant.c
blob53379482cb4d31e285cc35df56bb239f1e8a8697
1 // RUN: %llvmgcc -S %s -O1 -o - | grep {ret.*123}
2 // Check for bug compatibility with gcc.
4 const int x __attribute((weak)) = 123;
6 int* f(void) {
7 return &x;
10 int g(void) {
11 return *f();