// Basic C++ test for update_cc_test_checks
// RUN: %clang_cc1 -no-opaque-pointers -triple=x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
classFoo{int x;public:explicitFoo(intx);~Foo();inlineintfunction_defined_inline(intarg)const{return arg + x;}inlineintfunction_defined_out_of_line(intarg)const;};Foo::Foo(intx):x(x){}Foo::~Foo(){}intFoo::function_defined_out_of_line(intarg)const{return x - arg;}// Call the inline methods to ensure the LLVM IR is generated:
intmain(){
Foo f(1);
f.function_defined_inline(2);
f.function_defined_out_of_line(3);}