summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.spec/temp.explicit/p12.cpp
blob: c7564868f8addf1677502f073eeeba33753e8bb2 (about) (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.