• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -mllvm -asm-verbose -S -O2 -g %s -o - | FileCheck %s
2 // Radar 8122864
3 
4 // Code is not generated for function foo, but preserve type information of
5 // local variable xyz.
foo()6 static void foo() {
7 // CHECK: DW_TAG_structure_type
8   struct X { int a; int b; } xyz;
9 }
10 
bar()11 int bar() {
12   foo();
13   return 1;
14 }
15