Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-composite-triviality-fwd-decl.cpp
blob812e3ed5f582d77da38eb0ecd73e75b581d4d61e
1 // RUN: %clang_cc1 -emit-llvm -gcodeview -debug-info-kind=limited -x c %s -o - | FileCheck %s --check-prefix CHECK-C
2 // RUN: %clang_cc1 -emit-llvm -gcodeview -debug-info-kind=limited -x c++ %s -o - | FileCheck %s --check-prefix CHECK-CXX
3 //
4 // Test for DIFlagNonTrivial on forward declared DICompositeTypes.
6 struct Incomplete;
7 struct Incomplete (*func_ptr)(void) = 0;
8 // CHECK-C: !DICompositeType({{.*}}name: "Incomplete"
9 // CHECK-C-NOT: DIFlagNonTrivial
10 // CHECK-CXX: !DICompositeType({{.*}}name: "Incomplete"
11 // CHECK-CXX-SAME: DIFlagNonTrivial