2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20051207-3.c
blob3d4b2a48c39567a5a0dfcca17578943a4fb47b6a
1 /* GCC doesn't generate any .eh_frame data for this TU itself, so it
2 shouldn't warn about "a" conflicting with the built-in idea of
3 .eh_frame. The warning therefore belongs on the second decl. */
4 /* { dg-options "-fno-unit-at-a-time" } */
5 /* { dg-require-named-sections "" } */
6 int a __attribute__((section (".eh_frame"))) = 1;
7 const int b __attribute__((section (".eh_frame"))) = 1; /* { dg-error "section type conflict" } */