aboutsummaryrefslogtreecommitdiff
path: root/test/ASTMerge/var.c
blob: 4fda4acb9dc02570c669e735004f470d04017016 (plain)
1
2
3
4
5
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/var1.c
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/var2.c
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s

// CHECK: error: external variable 'x1' declared with incompatible types in different translation units ('double *' vs. 'float **')