p12.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
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