blob: 99fa74b10d32496fcacf63af06b628bbd6bf62f6 [file] [log] [blame]
Douglas Gregorb203c9e2010-02-11 18:18:11 +00001// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/struct1.c
2// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/struct2.c
3// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
4
5// CHECK: struct2.c:13:11: error: external variable 'x1' declared with incompatible types in different translation units ('struct S1' vs. 'struct S1')
6// CHECK: struct1.c:16:11: note: declared here with type 'struct S1'
7// CHECK: 2 diagnostics