diff options
Diffstat (limited to 'test/FrontendC/weak_constant.c')
-rw-r--r-- | test/FrontendC/weak_constant.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/FrontendC/weak_constant.c b/test/FrontendC/weak_constant.c deleted file mode 100644 index 5337948..0000000 --- a/test/FrontendC/weak_constant.c +++ /dev/null @@ -1,12 +0,0 @@ -// RUN: %llvmgcc -S %s -O1 -o - | grep {ret.*123} -// Check for bug compatibility with gcc. - -const int x __attribute((weak)) = 123; - -int* f(void) { - return &x; -} - -int g(void) { - return *f(); -} |