1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-pch -o %t1.pch %s 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-pch -o %t2.pch %s 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -include-pch %t1.pch -include-pch %t2.pch -verify 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc #ifndef HEADER 6*f4a2713aSLionel Sambuc #define HEADER 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc extern int x; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc #else 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc #warning parsed this 13*f4a2713aSLionel Sambuc // expected-warning@-1 {{parsed this}} foo()14*f4a2713aSLionel Sambucint foo() { 15*f4a2713aSLionel Sambuc return x; 16*f4a2713aSLionel Sambuc } 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc #endif 19