Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / spellcheck-macro-ordering.C
blob59e9f8a94384518401ca69935a6d7b34ed86a9e0
1 // PR c++/72786
3 /* Example of a macro-ordering issue, where the use is before the defn.  */
5 class DocTargetDriver {
6   virtual void clone() const OVERRIDE { }
7   /* Offering "OVERRIDE" as a spelling suggestion for "OVERRIDE" would be
8      nonsensical.  */
9   // { dg-bogus "did you mean" "" { target *-*-* } .-3 }
10   // { dg-error "expected .;. at end of member declaration" "" { target *-*-* } .-4 }
11   // { dg-error ".OVERRIDE. does not name a type" "" { target *-*-* } .-5 }
12   // { dg-message "the macro 'OVERRIDE' had not yet been defined" "" { target *-*-* } .-6 }
15 #define OVERRIDE override
16 // { dg-message "9:it was later defined here" "" { target *-*-* } .-1 }