Dan Gohman | 2d65d35 | 2009-08-25 15:38:29 +0000 | [diff] [blame] | 1 | // RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | |
3 | void foo(); | ||||
4 | |||||
5 | void bar() { | ||||
6 | struct local { | ||||
7 | ~local() { foo(); } | ||||
8 | } local_obj; | ||||
9 | |||||
10 | foo(); | ||||
11 | } | ||||
12 |