blob: 847c9569e556dc540614dcfccbb77ffef0f0dbe6 [file] [log] [blame]
Douglas Gregor040afae2010-11-30 19:14:50 +00001// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class-template1.cpp
2// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class-template2.cpp
3// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
4
5// CHECK: class-template1.cpp:7:14: error: non-type template parameter declared with incompatible types in different translation units ('int' vs. 'long')
6// CHECK: class-template2.cpp:7:15: note: declared here with type 'long'
7
8// CHECK: class-template1.cpp:10:14: error: template parameter has different kinds in different translation units
9// CHECK: class-template2.cpp:10:10: note: template parameter declared here
10
11// CHECK: class-template1.cpp:16:23: error: non-type template parameter declared with incompatible types in different translation units ('long' vs. 'int')
12// CHECK: class-template2.cpp:16:23: note: declared here with type 'int'
13
14// CHECK: class-template1.cpp:19:10: error: template parameter has different kinds in different translation units
15// CHECK: class-template2.cpp:19:10: note: template parameter declared here