[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / ASTMerge / typedef.c
blob6f911295b96cf5582c9ff0dee95d5010d3f2c386
1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/typedef1.c
2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/typedef2.c
3 // RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
5 // CHECK: typedef2.c:4:10: error: external variable 'x2' declared with incompatible types in different translation units ('Typedef2' (aka 'double') vs. 'Typedef2' (aka 'int'))
6 // CHECK: typedef1.c:4:10: note: declared here with type 'Typedef2' (aka 'int')
7 // CHECK: 1 error