From: Mark Mitchell Date: Sat, 5 Sep 1998 11:13:48 +0000 (+0000) Subject: New test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8af43d55cd238d79fbe2d18ce9681a8d1327dc37;p=gcc.git New test From-SVN: r22254 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename12.C b/gcc/testsuite/g++.old-deja/g++.pt/typename12.C new file mode 100644 index 00000000000..cef670089c1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename12.C @@ -0,0 +1,31 @@ +// Special g++ Options: +// execution test - XFAIL *-*-* +// excess errors test - XFAIL *-*-* + +int i = 0; + +template +struct S { + struct X {}; +}; + +template +void f(T) +{ + S::X(); +} + +template <> +struct S { + static void X() { i = 1; } +}; + +int main() +{ + f(3); + if (i != 1) + return 1; + else + return 0; +} +