Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr124489.C

raw
1 // PR c++/124489
2 // { dg-do compile { target c++11 } }
3
4 void
5 g ()
6 {
7 constexpr decltype(nullptr) dm = nullptr; // { dg-message ".constexpr std::nullptr_t dm. previously declared here" }
8 constexpr decltype(nullptr) dm = nullptr; // { dg-error "redeclaration of .constexpr std::nullptr_t dm." }
9 }