Devang Patel | c0b850c | 2011-08-19 23:26:54 +0000 | [diff] [blame] | 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. | ||||
6 | static void foo() { | ||||
7 | // CHECK: DW_TAG_structure_type | ||||
8 | struct X { int a; int b; } xyz; | ||||
9 | } | ||||
10 | |||||
11 | int bar() { | ||||
12 | foo(); | ||||
13 | return 1; | ||||
14 | } |