1*f4a2713aSLionel Sambuc // Test this without pch. 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -include %S/cxx-variadic-templates.h -verify %s -ast-dump -o - 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -include %S/cxx-variadic-templates.h %s -emit-llvm -o - | FileCheck %s 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc // Test with pch. 6*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -x c++-header -emit-pch -o %t %S/cxx-variadic-templates.h 7*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s -ast-dump -o - 8*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -include-pch %t %s -emit-llvm -o - | FileCheck %s 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc // expected-no-diagnostics 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc // CHECK: allocate_shared 13*f4a2713aSLionel Sambuc shared_ptr<int> spi = shared_ptr<int>::allocate_shared(1, 2); 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc template<int> struct A {}; 16*f4a2713aSLionel Sambuc template<int> struct B {}; 17*f4a2713aSLionel Sambuc outer<int, int>::inner<1, 2, A, B> i(A<1>{}, B<2>{}); 18