p12.cpp revision 32212f9d000e6bb631499afce43cd13fc0387413
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3char* p = 0;
4template<class T> T g(T x = &p) { return x; }
5template int g<int>(int);	// OK even though &p isn't an int.
6
7