1 /* { dg-do compile } */
2 /* { dg-options "-fopt-info-loop-note-internals" } */
3
4 extern void test_string_literal (void);
5 extern void test_tree (void);
6 extern void test_gimple (int);
7 extern void test_cgraph_node (void);
8 extern void test_wide_int (void);
9 extern void test_poly_int (void);
10 extern void test_scopes (void);
11
test_remarks(void)12 void test_remarks (void)
13 {
14 test_string_literal (); /* { dg-message "test of dump for 'test_string_literal'" } */
15 test_tree (); /* { dg-message "test of tree: 0" } */
16 test_gimple (42); /* { dg-message "test of gimple: test_gimple \\(42\\);" } */
17 test_cgraph_node (); /* { dg-message "test of callgraph node: test_cgraph_node/\[0-9\]+" } */
18 test_wide_int (); /* { dg-message "test of wide int: 0" } */
19 test_poly_int (); /* { dg-message "test of poly int: 42" } */
20
21 /* Dump messages in nested scopes are not printed by default, and
22 require "-internals". */
23 test_scopes (); /* { dg-line test_scopes_line } */
24 /* { dg-message "=== outer scope ===" "" { target *-*-* } test_scopes_line } */
25 /* { dg-message " at outer scope" "" { target *-*-* } test_scopes_line } */
26 /* { dg-message " === middle scope ===" "" { target *-*-* } test_scopes_line } */
27 /* { dg-message " at middle scope" "" { target *-*-* } test_scopes_line } */
28 /* { dg-message " === innermost scope ===" "" { target *-*-* } test_scopes_line } */
29 /* { dg-message " at innermost scope" "" { target *-*-* } test_scopes_line } */
30 }
31