1 // RUN: %clang_cc1 -verify %s
3 #include "verify-marker.h" // expected-error@#1 {{unknown type name 'unknown_type'}}
7 // expected-error@#b {{redefinition of 'x'}}
8 // expected-note@#a {{previous}}
10 // expected-error@#unknown {{}} expected-error {{use of undefined marker '#unknown'}}
12 // This is OK: there's no problem with a source file containing what looks like
13 // a duplicate definition of a marker if that marker is never used.
17 // #bar expected-note {{ambiguous marker '#bar' is defined here}}
18 // #bar expected-note {{ambiguous marker '#bar' is defined here}}
19 // expected-error@#bar 0-1{{oops}} expected-error{{reference to marker '#bar' is ambiguous}}
21 // expected-error@#forward_ref {{undeclared identifier 'future'}}
22 int y
= future
; // #forward_ref