Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / charset / attribute2.c
blobef1f35f3ed109ece012dac9c0c5b5559cb08097e
1 /* Test to make sure that invalid attributes aren't translated.
2 If error recovery is ever testable then "foobar" should be
3 translated. */
4 /* { dg-do compile }
5 { dg-require-iconv "IBM1047" }
6 */
7 int foo __attribute__ ((walrus)); /* { dg-error "walrus" "ignored" } */
8 char x[] = "foobar";