Commit 8af43d55 by Mark Mitchell

New test

From-SVN: r22254
parent 423f265c
// Special g++ Options:
// execution test - XFAIL *-*-*
// excess errors test - XFAIL *-*-*
int i = 0;
template <class T>
struct S {
struct X {};
};
template <class T>
void f(T)
{
S<T>::X();
}
template <>
struct S<int> {
static void X() { i = 1; }
};
int main()
{
f(3);
if (i != 1)
return 1;
else
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment