| 1 |
// { dg-do compile } |
| 2 |
// Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org> |
| 3 |
#include <cstddef> |
| 4 |
|
| 5 |
template <int T> struct A {}; |
| 6 |
template <void* T> struct B {}; |
| 7 |
|
| 8 |
A<NULL> a; // { dg-warning "NULL" } |
| 9 |
B<NULL> b; // { dg-error "" } |
| 10 |
|