Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / clang-rename / FunctionMacro.cpp
blob6e87026ec706908dccb24479aad3b99a1d9b17ac
1 #define moo foo // CHECK: #define moo macro_function
3 int foo() /* Test 1 */ { // CHECK: int macro_function() /* Test 1 */ {
4 return 42;
7 void boo(int value) {}
9 void qoo() {
10 foo(); // CHECK: macro_function();
11 boo(foo()); // CHECK: boo(macro_function());
12 moo();
13 boo(moo());
16 // Test 1.
17 // RUN: clang-rename -offset=68 -new-name=macro_function %s -- | sed 's,//.*,,' | FileCheck %s
19 // To find offsets after modifying the file, use:
20 // grep -Ubo 'foo.*' <file>