Douglas Gregor | f9997a0 | 2011-02-01 15:24:58 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -std=c++11 -include %S/cxx-variadic-templates.h -verify %s -ast-dump -o - |
| 3 | // RUN: %clang_cc1 -std=c++11 -include %S/cxx-variadic-templates.h %s -emit-llvm -o - | FileCheck %s |
Douglas Gregor | f9997a0 | 2011-02-01 15:24:58 +0000 | [diff] [blame] | 4 | |
| 5 | // Test with pch. |
Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 6 | // RUN: %clang_cc1 -std=c++11 -x c++-header -emit-pch -o %t %S/cxx-variadic-templates.h |
| 7 | // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s -ast-dump -o - |
| 8 | // RUN: %clang_cc1 -std=c++11 -include-pch %t %s -emit-llvm -o - | FileCheck %s |
Douglas Gregor | f9997a0 | 2011-02-01 15:24:58 +0000 | [diff] [blame] | 9 | |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 10 | // expected-no-diagnostics |
| 11 | |
Douglas Gregor | f9997a0 | 2011-02-01 15:24:58 +0000 | [diff] [blame] | 12 | // CHECK: allocate_shared |
| 13 | shared_ptr<int> spi = shared_ptr<int>::allocate_shared(1, 2); |
Richard Smith | 6964b3f | 2012-09-07 02:06:42 +0000 | [diff] [blame] | 14 | |
| 15 | template<int> struct A {}; |
| 16 | template<int> struct B {}; |
| 17 | outer<int, int>::inner<1, 2, A, B> i(A<1>{}, B<2>{}); |