llvm-project/clang/test/CodeGenCXX/debug-info-composite-trivia...

12 lines
544 B
C++

// RUN: %clang_cc1 -emit-llvm -gcodeview -debug-info-kind=limited -x c %s -o - | FileCheck %s --check-prefix CHECK-C
// RUN: %clang_cc1 -emit-llvm -gcodeview -debug-info-kind=limited -x c++ %s -o - | FileCheck %s --check-prefix CHECK-CXX
//
// Test for DIFlagNonTrivial on forward declared DICompositeTypes.
struct Incomplete;
struct Incomplete (*func_ptr)() = 0;
// CHECK-C: !DICompositeType({{.*}}name: "Incomplete"
// CHECK-C-NOT: DIFlagNonTrivial
// CHECK-CXX: !DICompositeType({{.*}}name: "Incomplete"
// CHECK-CXX-SAME: DIFlagNonTrivial