aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/nontype10.C
blob: 83ac8e3026f3c421fa62950a2f8d0e246f8d9e6e (plain)
1
2
3
4
5
6
7
8
9
10
// { 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 "" }