llvm-project/clang/test/Driver/darwin-debug-flags.c
Daniel Dunbar 24c7f5efc5 Add -dwarf-debug-flags, which provides a way to embed the cc1 level options used
to compile a translation unit into the debug info for that file.
 - Used by parts of Darwin build process to check compiler flags, etc.
 - <rdar://problem/7256886> clang does not emit AT_APPLE_flags

llvm-svn: 91661
2009-12-18 02:43:17 +00:00

12 lines
295 B
C

// RUN: env RC_DEBUG_OPTIONS=1 %clang -ccc-host-triple i386-apple-darwin9 -g -Os %s -emit-llvm -S -o - | FileCheck %s
// <rdar://problem/7256886>
// CHECK: !1 = metadata !{
// CHECK: -cc1
// CHECK: -triple i386-apple-darwin9
// CHECK: -g
// CHECK: -Os
// CHECK: [DW_TAG_compile_unit ]
int x;