blob: 1545e1cd4b5cb16701f8637b1268e175f461176e [file] [log] [blame]
// { dg-options "-fdiagnostics-show-caret" }
// { dg-do compile { target c++11 } }
struct A
{
virtual void foo() const;
};
struct B final final : A /* { dg-error "duplicate virt-specifier" }
{ dg-begin-multiline-output "" }
struct B final final : A
^~~~~
-----
{ dg-end-multiline-output "" } */
{
virtual void foo() const override final override; /* { dg-error "duplicate virt-specifier" }
{ dg-begin-multiline-output "" }
virtual void foo() const override final override;
^~~~~~~~
--------
{ dg-end-multiline-output "" } */
};
thread_local thread_local int i = 0; /* { dg-error "duplicate" }
{ dg-begin-multiline-output "" }
thread_local thread_local int i = 0;
^~~~~~~~~~~~
------------
{ dg-end-multiline-output "" } */