Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp1y/constexpr-neg1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile { target c++14 } } struct A { A(); }; constexpr int f(int i) { static int j = i; // { dg-error "static" } thread_local int l = i; // { dg-error "thread_local" } goto foo; // { dg-error "goto" } foo: asm("foo"); // { dg-error "asm" "" { target c++17_down } } int k; // { dg-error "uninitialized" "" { target c++17_down } } A a; // { dg-error "non-literal" } return i; } // FIXME remove // { dg-prune-output "return" }