2017-11-20 Steve Ellcey <sellcey@cavium.com>
[official-gcc.git] / gcc / testsuite / g++.dg / spellcheck-macro-ordering.C
blob3b888c6dcb3b80ca2a2549fe48338915a2b6cd7d
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 }
14 #define OVERRIDE override