Daniel Dunbar | 025f80d | 2009-07-25 11:27:37 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -g %s -emit-llvm -o %t -fblocks && |
Devang Patel | 963dfbd | 2009-04-15 21:51:44 +0000 | [diff] [blame] | 2 | // RUN: grep "func.start" %t | count 4 |
3 | // 1 declaration, 1 bar, 1 test_block_dbg and 1 for the block. | ||||
4 | |||||
5 | static __inline__ __attribute__((always_inline)) int bar(int va, int vb) { return (va == vb); } | ||||
6 | |||||
7 | int test_block_dbg() { | ||||
8 | extern int g; | ||||
9 | static int i = 1; | ||||
10 | ^(int j){ i = bar(3,4); }(0); | ||||
11 | return i + g; | ||||
12 | } | ||||
13 |