llvm-for-llvmta/tools/clang/test/SemaCXX/pr27047-default-init-expr-n...

9 lines
160 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s
template <typename T>
struct A {
// Used to crash when field was named after class.
int A = 0;
};
A<int> a;