llvm-project
14 строк · 290.0 Байт
1// RUN: %clang_cc1 -emit-pch %s -o %t.pch
2// RUN: %clang_cc1 -include-pch %t.pch %s -verify
3
4#ifndef HEADER_INCLUDED
5#define HEADER_INCLUDED
6
7void func(struct Test);
8
9#else
10
11::Yest *T; // expected-error{{did you mean 'Test'}}
12// expected-note@7{{'Test' declared here}}
13
14#endif
15