[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / clang / test / CodeGenCXX / header-unit-member-func-linkage.cpp
blob52a8d58565f8ffe6c222bd6793e66177b694c1c5
1 // Tests that the member function with-in an class definition in the header unit is still implicit inline.
2 // RUN: rm -rf %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -xc++-user-header -emit-header-unit %t/foo.h -o %t/foo.pcm
6 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple -fmodule-file=%t/foo.pcm %t/user.cpp \
7 // RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %t/user.cpp
9 //--- foo.h
10 class foo {
11 public:
12 int getValue() {
13 return 43;
17 //--- user.cpp
18 import "foo.h";
19 int use() {
20 foo f;
21 return f.getValue();
24 // CHECK: define{{.*}}linkonce_odr{{.*}}@_ZN3foo8getValueEv