llvm-project/clang/test/CodeGenCXX/debug-info-var-template-partial-spec.cpp
Ellis Hoag 47b239eb5a [DIBuilder] Do not replace empty enum types
It looks like this array was missed in 4276d4a8d08b7640eb57cabf6988a5cf65b228b6

Fixed tests that expected `elements` to be empty or depeneded on the order of the empty DINode.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D107024
2021-08-30 12:33:03 -07:00

14 lines
366 B
C++

// RUN: %clang_cc1 %s -std=c++14 -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
// CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B",
// CHECK-SAME: elements: ![[empty:[0-9]+]]
// CHECK: ![[empty]] = !{}
struct B {
template <typename... e>
static const int d = 0;
template <typename e>
static const auto d<e> = d<e, e>;
} c;