Debian Codegraph @

contrib/dg-lint/test-1.c

raw
1 /* Various misspelled DejaGnu directives. */
2
3 /* Underscore rather than dash.
4 Example taken from gcc/testsuite/gcc.target/powerpc/vsx-builtin-msum.c
5 fixed in r15-3878-gd5864b95ce94d9. */
6 /* { dg_final { scan_assembler_times "vmsumudm" 2 } } */
7
8
9 /* Correct directive. */
10 /* { dg-final { scan_assembler_times "vmsumudm" 2 } } */
11
12 /* Malformed uses of directives.
13
14 Missing braces
15 dg-output-file "m4.out"
16
17 Missing leading brace
18 dg-output-file "m4.out" }
19
20 Missing trailing brace
21 { dg-output-file "m4.out"
22
23 Missing whitespace.
24 {dg-output-file "m4.out"}
25
26 Trailing comma.
27 { dg-output-file, "m4.out" }
28 */
29
30 /* Unrecognized directives.
31
32 { dg-whatever }
33 { dg-whatever }
34 { dg-whatever "" }
35 */
36
37 /* Misspelled directive
38
39 { dg-oupyt-file "m4.out" }
40
41 */