Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Coverage / unresolved-ctor-expr.cpp
blob10286c79f569d5196537d77e115ee802f2f35382
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -fcoverage-mapping %s
2 // expected-no-diagnostics
4 // GH62105 demonstrated a crash with this example code when calculating
5 // coverage mapping because some source location information was being dropped.
6 // Demonstrate that we do not crash on this code.
7 namespace std { template <typename> class initializer_list {}; }
9 template <typename> struct T {
10 T(std::initializer_list<int>, int = int());
11 bool b;
14 template <typename> struct S1 {
15 static void foo() {
16 class C;
17 (void)(0 ? T<C>{} : T<C>{});
21 void bar() {
22 S1<int>::foo();