aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/charset/attribute2.c
blob: 3cb766aa63a94c455384b6b2f1b5ed936257df8e (plain)
1
2
3
4
5
6
7
8
/* Test to make sure that invalid attributes aren't translated.
   If error recovery is ever testable then "foobar" should be
   translated.  */
/* { dg-do compile }
   { dg-require-iconv "IBM-1047" }
*/
int foo __attribute__ ((walrus)); /* { dg-error "walrus" "ignored" } */
char x[] = "foobar";