llvm-for-llvmta/tools/clang/test/CXX/expr/expr.cond/p4.cpp

11 lines
180 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=c++98 -verify %s
// RUN: %clang_cc1 -std=c++1z -verify %s
// expected-no-diagnostics
struct A { A(); A(int); };
void f() {
const A a;
true ? a : 0;
}