* g++.dg/template/nontype23.C: New.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 May 2011 18:03:02 +0000 (18:03 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 May 2011 18:03:02 +0000 (18:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173586 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 04885cd..4b4bd93 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;