diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-09 22:37:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-09 22:37:58 +0000 |
commit | d343ff623eb11e277f1e70bca16073e424d8a30d (patch) | |
tree | 48e4fb5f8446f88e2bb383f53b5a67ff633d2110 /test/ASTMerge/var.c | |
parent | 79a9a3417929e340e84dcbc06ed9c3a277cad959 (diff) |
Hook up the diagnostics-argument printer when merging AST files, so
that we get readable diagnostics such as:
error: external variable 'x1' declared with incompatible types in
different translation units ('double *' vs. 'float **')
However, there is no translation of source locations, yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/var.c')
-rw-r--r-- | test/ASTMerge/var.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ASTMerge/var.c b/test/ASTMerge/var.c index 6e1559a399..4fda4acb9d 100644 --- a/test/ASTMerge/var.c +++ b/test/ASTMerge/var.c @@ -2,4 +2,4 @@ // 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: declared with incompatible types +// CHECK: error: external variable 'x1' declared with incompatible types in different translation units ('double *' vs. 'float **') |