Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / plugin / diagnostic-test-show-locus-color-line-numbers.c
blob0453c52b2ccfa2328f6a30e9acbf5cd4ea141c2b
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdiagnostics-show-caret -fplugin-arg-diagnostic_plugin_test_show_locus-color -fdiagnostics-show-line-numbers" } */
4 /* This is a collection of unittests for diagnostic_show_locus;
5 see the overview in diagnostic_plugin_test_show_locus.c.
7 In particular, note the discussion of why we need a very long line here:
8 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
9 and that we can't use macros in this file. */
11 void test_multiline (void)
13 #if 0
14 x = (first_function ()
15 + second_function ()); /* { dg-warning "test" } */
17 /* { dg-begin-multiline-output "" }
18 14 | x = (\e[32m\e[Kfirst_function ()\e[m\e[K
19 | \e[32m\e[K~~~~~~~~~~~~~~~~~\e[m\e[K
20 15 | \e[01;35m\e[K+\e[m\e[K \e[34m\e[Ksecond_function ()\e[m\e[K);
21 | \e[01;35m\e[K^\e[m\e[K \e[34m\e[K~~~~~~~~~~~~~~~~~~\e[m\e[K
22 | \e[01;35m\e[K|\e[m\e[K
23 | \e[01;35m\e[Klabel\e[m\e[K
24 { dg-end-multiline-output "" } */
25 #endif