summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/weak_constant.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/weak_constant.c')
-rw-r--r--test/FrontendC/weak_constant.c12
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();
-}
OpenPOWER on IntegriCloud