annotate gcc/testsuite/gcc.dg/charset/asm2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test for execution character set encoding errors.
kono
parents:
diff changeset
2 If we ever get a good way to test error recovery
kono
parents:
diff changeset
3 the string "foobar" should be translated. */
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5 /* { dg-require-iconv "IBM1047" } */
kono
parents:
diff changeset
6 asm (not_a_string); /* { dg-error "(parse error|syntax error|expected string literal) before" "not_a_string" } */
kono
parents:
diff changeset
7 char x[] = "foobar";
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 void foo (void)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 char *y;
kono
parents:
diff changeset
12 asm (not_a_string2); /* { dg-error "(parse error|syntax error|expected string literal) before" "not_a_string" } */
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 #define FOO "walrus"
kono
parents:
diff changeset
15 y = FOO;
kono
parents:
diff changeset
16 }