Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype10.C
blob: 83ac8e3026f3c421fa62950a2f8d0e246f8d9e6e [
file
] [
log
] [
blame
]
// { dg-do compile }
// Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
#include
<cstddef>
template
<
int
T
>
struct
A
{};
template
<
void
*
T
>
struct
B
{};
A
<
NULL
>
a
;
// { dg-warning "NULL" }
B
<
NULL
>
b
;
// { dg-error "" }