Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/plugin/diagnostic-group-test-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-fdiagnostics-show-caret" } */ | |
3 | |
4 extern void __emit_warning (const char *message); | |
5 | |
6 static void test_1 (void) | |
7 { | |
8 __emit_warning ("warning 1"); | |
9 } | |
10 | |
11 /* { dg-begin-multiline-output "" } | |
12 ================================= BEGIN GROUP ============================== | |
13 PREFIX | |
14 __emit_warning ("warning 1"); | |
15 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
16 PREFIX: message for note | |
17 PREFIX: some more detail | |
18 PREFIX: yet more detail | |
19 ---------------------------------- END GROUP ------------------------------- | |
20 { dg-end-multiline-output "" } */ | |
21 | |
22 /* { dg-begin-multiline-output "" } | |
23 ================================= BEGIN GROUP ============================== | |
24 PREFIX: an unrelated message | |
25 ---------------------------------- END GROUP ------------------------------- | |
26 { dg-end-multiline-output "" } */ |