llvm-for-llvmta/tools/clang/test/SemaObjCXX/class-templ-error-null-init.mm

8 lines
155 B
Plaintext
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
// expected-no-diagnostics
template <typename a, int* = nullptr>
struct e {
e(a) {}
};
e c(0);