llvm-project/clang/test/CodeGen/debug-info-lto.c
Adrian Prantl b442302131 Debug Info: Set the DICompileUnit's isOptimized flag when compiling with LTO.
rdar://problem/27640939

llvm-svn: 310147
2017-08-04 23:08:57 +00:00

5 lines
272 B
C

// RUN: %clang_cc1 -flto -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s
// RUN: %clang_cc1 -flto=thin -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s
// The "o" in LTO stands for optimization!
// CHECK: !DICompileUnit({{.*}} isOptimized: true