Shrink Thumb2 movcc instructions.
[llvm/avr.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();