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. 5 6 struct Incomplete; 7 struct Incomplete (*func_ptr)() = 0; 8 // CHECK-C: !DICompositeType({{.*}}name: "Incomplete" 9 // CHECK-C-NOT: DIFlagNonTrivial 10 // CHECK-CXX: !DICompositeType({{.*}}name: "Incomplete" 11 // CHECK-CXX-SAME: DIFlagNonTrivial 12