libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / sarif-output / missing-semicolon.c
blob426b930cfc2c9848c7a9fda473d6a3fc77ab2bb6
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-format=sarif-file" } */
4 /* Verify that SARIF output can capture secondary locations
5 relating to a diagnostic. */
7 int missing_semicolon (void)
9 return 42
12 /* We expect a failing compile due to the error, but the use of
13 -fdiagnostics-format=sarif-file means there should be no output to stderr.
14 DejaGnu injects this message; ignore it:
15 { dg-prune-output "exit status is 1" } */
17 /* Verify that some JSON was written to a file with the expected name:
18 { dg-final { verify-sarif-file } } */
20 /* Use a Python script to verify various properties about the generated
21 .sarif file:
22 { dg-final { run-sarif-pytest missing-semicolon.c "test-missing-semicolon.py" } } */