| 1 |
/* PR63300 make sure we don't duplicate type qualifiers unneeded. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-gdwarf -dA" } */ |
| 4 |
|
| 5 |
/* This should give us: |
| 6 |
- One const type pointing to a char |
| 7 |
- One volatile type pointing to a char |
| 8 |
- Either one const type pointing to the volatile type pointing to a char |
| 9 |
or one volatile type pointing to the const type pointing to a char. |
| 10 |
But not both. */ |
| 11 |
|
| 12 |
char a; |
| 13 |
const char b; |
| 14 |
volatile const char c; |
| 15 |
volatile char d; |
| 16 |
const volatile char e; |
| 17 |
|
| 18 |
/* { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_(?:const|volatile)_type" 3 } } */ |