blob: cc3c031a90a0eb8d12f28981c677779725f1905f (
plain)
1
2
3
4
5
6
7
8
|
// { dg-do compile { target c++11 } }
// Test assignment to int
const int n1 = nullptr; // { dg-error "cannot convert " }
decltype(nullptr) mynull = 0;
const int n2 = mynull; // { dg-error "cannot convert " }
|