blob: 8608fa2637a2c27a74c25f73ad29acfddbccad78 [file] [log] [blame]
// { dg-options "-fdiagnostics-show-caret" }
struct A
{
void foo() const const; /* { dg-error "duplicate cv-qualifier" }
{ dg-begin-multiline-output "" }
void foo() const const;
^~~~~
-----
{ dg-end-multiline-output "" } */
};
volatile volatile int i = 0; /* { dg-error "duplicate" }
{ dg-begin-multiline-output "" }
volatile volatile int i = 0;
^~~~~~~~
--------
{ dg-end-multiline-output "" } */