* g++.dg/template/nontype23.C: New.
authorJason Merrill <jason@redhat.com>
Mon, 9 May 2011 18:03:02 +0000 (14:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 9 May 2011 18:03:02 +0000 (14:03 -0400)
From-SVN: r173586

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/nontype23.C [new file with mode: 0644]

index 04885cd76272b0e16011268481d5aca7c1147db9..4b4bd93cd1129cc0640b85cbc2be7da46b83d9dc 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-09  Jason Merrill  <jason@redhat.com>
+
+       * g++.dg/template/nontype23.C: New.
+
 2001-05-07  Fabien ChĂȘne  <fabien@gcc.gnu.org>
        PR c++/48859
        * g++.dg/init/pr48859.C: New.
diff --git a/gcc/testsuite/g++.dg/template/nontype23.C b/gcc/testsuite/g++.dg/template/nontype23.C
new file mode 100644 (file)
index 0000000..dfda4fe
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/48936
+
+template <bool C> int foo (void);
+template <class T> struct S
+{
+  static const unsigned int a = sizeof (T);
+  enum { c = sizeof (foo <(a == 0)> ()) };
+};
+S<int> x;