Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / nontype10.C
blob83ac8e3026f3c421fa62950a2f8d0e246f8d9e6e
1 // { dg-do compile }
2 // Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 #include <cstddef>
5 template <int  T> struct A {};
6 template <void* T> struct B {};
8 A<NULL> a;                      // { dg-warning "NULL" }
9 B<NULL> b;  // { dg-error "" }