annotate gcc/testsuite/gdc.test/fail_compilation/fail19182.d @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 // REQUIRED_ARGS: -c
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /*
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 TEST_OUTPUT:
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 ---
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 gigi
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 fail_compilation/fail19182.d(12): Error: `pragma(msg)` is missing a terminating `;`
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 ---
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 void foo()
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 pragma(msg, "gigi") // Here
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 static foreach (e; [])
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 pragma(msg, "lili");
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 }