Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/expr/ptr-comp2.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// DR 1512 // PR c++/87699 // { dg-do compile { target c++11 } } template<class T, decltype((((T*) 0) < nullptr), true) = false> // { dg-error "ordered comparison" } bool test(T*) { return true; } int main() { test((int*)(nullptr)); // { dg-error "no matching function" } }