summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-nullptr.C
blob: 7ac53db489ca15a78fef84b1b6448e75ca078af5 (plain)
1
2
3
4
5
6
// { dg-options -std=c++0x }

constexpr int zero() { return 0; }

void* ptr1 = zero(); // #1
constexpr void* ptr2 = zero(); // #2