Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/spellcheck-macro-ordering.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/72786 |
2 | |
3 /* Example of a macro-ordering issue, where the use is before the defn. */ | |
4 | |
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 } | |
131 | 12 // { dg-message "the macro 'OVERRIDE' had not yet been defined" "" { target *-*-* } .-6 } |
111 | 13 }; |
14 | |
15 #define OVERRIDE override | |
131 | 16 // { dg-message "-:it was later defined here" "" { target *-*-* } .-1 } |