gcc/testsuite/gcc.dg/pr7356.c
raw| 1 | /* { dg-options "-fdiagnostics-show-caret" } */ |
| 2 | |
| 3 | a /* { dg-line stray_token } */ |
| 4 | #include <stdlib.h> |
| 5 | #include <stdio.h> |
| 6 | #include <string.h> |
| 7 | int main(int argc, char** argv) |
| 8 | { |
| 9 | return 0; |
| 10 | } |
| 11 | |
| 12 | /* { dg-error "expected ';' before '.*'" "" { target *-*-* } stray_token } */ |
| 13 | /* { dg-begin-multiline-output "" } |
| 14 | a |
| 15 | ^ |
| 16 | ; |
| 17 | { dg-end-multiline-output "" } */ |