diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/torture/pr57945.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/torture/pr57945.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/torture/pr57945.c b/gcc-4.9/gcc/testsuite/c-c++-common/torture/pr57945.c new file mode 100644 index 000000000..0803e8ff2 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/torture/pr57945.c @@ -0,0 +1,11 @@ +/* PR c++/57945 */ +/* { dg-do compile } */ + +extern int j; +static int i __attribute__((weakref("j"))); + +int +foo (void) +{ + return &i ? i : 0; +} |