llvm-project/clang/test/SemaObjCXX/class-templ-error-null-init.mm
Erik Pilkington ca019e745d [Sema] Relax a failing assert in TemplateArgumentLoc
Any of these template argument kinds can be represented with an expression, so
accept them in this constructor.

Patch by Balaji Iyer!

rdar://41459965

Differential revision: https://reviews.llvm.org/D49766

llvm-svn: 338338
2018-07-31 00:18:30 +00:00

8 lines
155 B
Plaintext

// 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);