mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 03:56:42 +00:00

This patch adds `CC_M68kRTD`, which will be used on function if either `__attribute__((m68k_rtd))` is presented or `-mrtd` flag is given. Differential Revision: https://reviews.llvm.org/D149867
15 lines
226 B
C++
15 lines
226 B
C++
// RUN: %clang_cc1 -triple m68k-linux-gnu -fsyntax-only %s
|
|
|
|
class A {
|
|
public:
|
|
void __attribute__((m68k_rtd)) member() {}
|
|
};
|
|
|
|
void test() {
|
|
A a;
|
|
a.member();
|
|
|
|
auto f = [](int b) __attribute__((m68k_rtd)) {};
|
|
f(87);
|
|
};
|