1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // CHECK: store i32 59, i32* %size 4*f4a2713aSLionel Sambuc // CHECK: store i32 65, i32* %size 5*f4a2713aSLionel Sambuc template<typename T> 6*f4a2713aSLionel Sambuc class TemplateClass { 7*f4a2713aSLionel Sambuc public: templateClassFunction()8*f4a2713aSLionel Sambuc void templateClassFunction() { 9*f4a2713aSLionel Sambuc int size = sizeof(__PRETTY_FUNCTION__); 10*f4a2713aSLionel Sambuc } 11*f4a2713aSLionel Sambuc }; 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc // CHECK: store i32 35, i32* %size 14*f4a2713aSLionel Sambuc // CHECK: store i32 38, i32* %size 15*f4a2713aSLionel Sambuc template<typename T> functionTemplate(T t)16*f4a2713aSLionel Sambucvoid functionTemplate(T t) { 17*f4a2713aSLionel Sambuc int size = sizeof(__PRETTY_FUNCTION__); 18*f4a2713aSLionel Sambuc } 19*f4a2713aSLionel Sambuc main()20*f4a2713aSLionel Sambucint main() { 21*f4a2713aSLionel Sambuc TemplateClass<int> t1; 22*f4a2713aSLionel Sambuc t1.templateClassFunction(); 23*f4a2713aSLionel Sambuc TemplateClass<double> t2; 24*f4a2713aSLionel Sambuc t2.templateClassFunction(); 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc functionTemplate<int>(0); 27*f4a2713aSLionel Sambuc functionTemplate(0.0); 28*f4a2713aSLionel Sambuc 29*f4a2713aSLionel Sambuc return 0; 30*f4a2713aSLionel Sambuc } 31