llvm-for-llvmta/tools/clang/test/CodeGenCXX/debug-info-composite-trivia...

12 lines
544 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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