diff options
author | Jordan Rupprecht <[email protected]> | 2019-05-14 21:58:59 +0000 |
---|---|---|
committer | Jordan Rupprecht <[email protected]> | 2019-05-14 21:58:59 +0000 |
commit | b35a2aa71f76a334a9c98c0a3c3995b5d902d2b9 (patch) | |
tree | cdff4a5d1a715d4ad622fd8f190128b54bebe440 /test/ASTMerge/class-template/test.cpp | |
parent | 3748d41833787fcbf59cc5624e8d2b042a8991bc (diff) | |
parent | 741e05796da92b46d4f7bcbee00702ff37df6489 (diff) |
Creating branches/google/stable and tags/google/stable/2019-05-14 from r360103upstream/google/stable
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/google/stable@360714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/class-template/test.cpp')
-rw-r--r-- | test/ASTMerge/class-template/test.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/ASTMerge/class-template/test.cpp b/test/ASTMerge/class-template/test.cpp deleted file mode 100644 index 7e25c5d6cc..0000000000 --- a/test/ASTMerge/class-template/test.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// RUN: %clang_cc1 -std=c++1z -emit-pch -o %t.1.ast %S/Inputs/class-template1.cpp -// RUN: %clang_cc1 -std=c++1z -emit-pch -o %t.2.ast %S/Inputs/class-template2.cpp -// RUN: not %clang_cc1 -std=c++1z -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s - -static_assert(sizeof(X0<char>().getValue(1)) == sizeof(char)); -static_assert(sizeof(X0<int>().getValue(1)) == sizeof(int)); - -// CHECK: class-template1.cpp:9:14: error: non-type template parameter declared with incompatible types in different translation units ('int' vs. 'long') -// CHECK: class-template2.cpp:9:15: note: declared here with type 'long' - -// CHECK: class-template1.cpp:12:14: error: template parameter has different kinds in different translation units -// CHECK: class-template2.cpp:12:10: note: template parameter declared here - -// CHECK: class-template1.cpp:18:23: error: non-type template parameter declared with incompatible types in different translation units ('long' vs. 'int') -// CHECK: class-template2.cpp:18:23: note: declared here with type 'int' - -// CHECK: class-template1.cpp:21:10: error: template parameter has different kinds in different translation units -// CHECK: class-template2.cpp:21:10: note: template parameter declared here - -// CHECK: class-template2.cpp:27:20: error: external variable 'x0r' declared with incompatible types in different translation units ('X0<double> *' vs. 'X0<float> *') -// CHECK: class-template1.cpp:26:19: note: declared here with type 'X0<float> *' - -// CHECK: class-template1.cpp:35:8: warning: type 'X0<wchar_t>' has incompatible definitions in different translation units -// CHECK: class-template1.cpp:36:7: note: field 'member' has type 'int' here -// CHECK: class-template2.cpp:36:9: note: field 'member' has type 'float' here - -// CHECK: 1 warning and 5 errors generated. -// CHECK-NOT: static_assert |