diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr83100-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr83100-2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr83100-2.c b/gcc/testsuite/gcc.dg/pr83100-2.c new file mode 100644 index 00000000000..6dbe93dcd16 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr83100-2.c @@ -0,0 +1,15 @@ +/* PR target/83100 */ +/* { dg-do run } */ +/* { dg-options "-O2 -fcommon -fdata-sections" } */ +/* { dg-additional-sources pr83100-3.c } */ +/* { dg-skip-if "-fdata-sections not supported" { hppa*-*-hpux* nvptx-*-* } } */ + +const int a; + +int +main () +{ + if (a != 7) + __builtin_abort (); + return 0; +} |