mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-25 05:30:25 +08:00
* g++.dg/template/nontype23.C: New.
From-SVN: r173586
This commit is contained in:
parent
1c682d060b
commit
14d0f7d244
@ -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.
|
||||
|
9
gcc/testsuite/g++.dg/template/nontype23.C
Normal file
9
gcc/testsuite/g++.dg/template/nontype23.C
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user