blob: 9de88f0cee77bf0a301dfb27f601516cde987b0f [file] [log] [blame]
Argyrios Kyrtzidis70ec1c72016-07-13 20:35:26 +00001// RUN: %clang_cc1 -fsyntax-only %s -chain-include %s -Wuninitialized -Wunused -verify
2
3// Make sure there is no crash.
4
5#ifndef HEADER
6#define HEADER
7
8#include "non-existent-header.h"
9
10class A {
11public:
12 ~A();
13};
14
15class ForwardCls;
16struct B {
17 ForwardCls f;
18 A a;
19};
20
21#else
22
23static void test() {
24 int x; // expected-warning {{unused}}
25 B b;
26}
27
28#endif