aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/temp/temp.spec/temp.explicit/p12.cpp
blob: 912b8e17bb98b05b7b763a7aa8b0607468d116b4 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -fsyntax-only -verify %s

char* p = 0; 
template<class T> T g(T x = &p) { return x; }
template int g<int>(int);	// OK even though &p isn’t an int.