Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / c / inlines / main.c
blob8fe49180800bd2fe940ddf607dcd3ae5a7db8fb8
1 #include <stdio.h>
3 inline void test1(int) __attribute__ ((always_inline));
4 inline void test2(int) __attribute__ ((always_inline));
6 void test2(int b) {
7 printf("test2(%d)\n", b); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
9 int c = b * 2;
10 printf("c=%d\n", c); //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"])
11 //% self.expect("expression c", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["84"])
15 void test1(int a) {
16 printf("test1(%d)\n", a);
17 test2(a+1);//% self.runCmd("step")
18 //% self.expect("expression b", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["24"])
21 int main() {
22 test2(42);
23 test1(23);
24 return 0;