1 // Test this without pch.
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
4 
5 // Test with pch.
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
9 
10 // expected-no-diagnostics
11 
12 // CHECK: allocate_shared
13 shared_ptr<int> spi = shared_ptr<int>::allocate_shared(1, 2);
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>{});
18