2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / section-2.c
blob8f11def96f980549b866808e433e1a8fd11cb536
1 /* Verify that we get errors for trying to put TLS data in
2 sections which can't work. */
3 /* { dg-require-effective-target tls } */
4 /* { dg-do compile { target *-*-vxworks } } */
6 #define A(X) __attribute__((section(X)))
8 __thread int i A("foo"); /* { dg-error "cannot be overridden" } */