1 // Basic C++ test for update_cc_test_checks
2 // RUN: %clang_cc1 -triple=x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
10 inline int function_defined_inline(int arg
) const {
13 inline int function_defined_out_of_line(int arg
) const;
16 Foo::Foo(int x
) : x(x
) {}
18 int Foo::function_defined_out_of_line(int arg
) const { return x
- arg
; }
20 // Call the inline methods to ensure the LLVM IR is generated:
23 f
.function_defined_inline(2);
24 f
.function_defined_out_of_line(3);