
the requested cv-qualifiers after construction. This usually doesn't matter, but it does matter within a ?: operator. llvm-svn: 290227
11 lines
180 B
C++
11 lines
180 B
C++
// 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;
|
|
}
|