pr70100.c: Add -mvsx.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / aka3.C
blob1eb4fb2e26a4c9a8ceadd9bdf5c6c5f097612a2e
1 /* Verify the "aka" descriptions for typedefs are correctly
2    quoted and shown within labels.  */
4 /* { dg-options "-fdiagnostics-show-caret" } */
6 typedef struct s1 t1;
7 typedef struct s2 {int i;} t2;
9 int foo(t1 *);
11 void test_1 () {
12   t2 pos;
14   foo (&pos); // { dg-error "cannot convert 't2\\*' {aka 's2\\*'} to 't1\\*' {aka 's1\\*'}" }
15   /* { dg-begin-multiline-output "" }
16    foo (&pos);
17         ^~~~
18         |
19         t2* {aka s2*}
20      { dg-end-multiline-output "" } */
21   /* { dg-begin-multiline-output "" }
22  int foo(t1 *);
23          ^~~~
24      { dg-end-multiline-output "" } */