summaryrefslogtreecommitdiff
path: root/clang/test/PCH/typo2.cpp
blob: f9b4c833e040bd84e0a561c518eef613837f0388 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -emit-pch %s -o %t.pch
// RUN: %clang_cc1 -include-pch %t.pch %s -verify

#ifndef HEADER_INCLUDED
#define HEADER_INCLUDED

void func(struct Test);  // expected-note{{'Test' declared here}}

#else

::Yest *T;  // expected-error{{did you mean 'Test'}}

#endif