Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/plugin/diagnostic-test-show-locus-generate-patch.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
62 the generated patch; they are not listed in the big expected | 62 the generated patch; they are not listed in the big expected |
63 multiline output below. */ | 63 multiline output below. */ |
64 #endif | 64 #endif |
65 } | 65 } |
66 | 66 |
67 /* Unit tests for add_fixit_insert_formatted. */ | |
68 | |
69 void test_add_fixit_insert_formatted_single_line (void) | |
70 { | |
71 {} | |
72 } | |
73 | |
74 void test_add_fixit_insert_formatted_multiline (void) | |
75 { | |
76 if (1) | |
77 { | |
78 } | |
79 } | |
80 | |
81 | |
67 /* Verify the output from -fdiagnostics-generate-patch. | 82 /* Verify the output from -fdiagnostics-generate-patch. |
68 We expect a header, containing the filename. This is the absolute path, | 83 We expect a header, containing the filename. This is the absolute path, |
69 so we can only capture it via regexps. */ | 84 so we can only capture it via regexps. */ |
70 | 85 |
71 /* { dg-regexp "\\-\\-\\- .*" } */ | 86 /* { dg-regexp "\\-\\-\\- .*" } */ |
106 x = a; | 121 x = a; |
107 + break; | 122 + break; |
108 case 'b': | 123 case 'b': |
109 x = b; | 124 x = b; |
110 } | 125 } |
126 @@ -68,7 +69,7 @@ | |
127 | |
128 void test_add_fixit_insert_formatted_single_line (void) | |
129 { | |
130 - {} | |
131 + {INSERTED-CONTENT} | |
132 } | |
133 | |
134 void test_add_fixit_insert_formatted_multiline (void) | |
135 @@ -76,6 +77,7 @@ | |
136 if (1) | |
137 { | |
138 } | |
139 + INSERTED-CONTENT | |
140 } | |
141 | |
142 | |
111 { dg-end-multiline-output "" } */ | 143 { dg-end-multiline-output "" } */ |