Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / m68k-rtdcall.cpp
blob835649359ae1517be9cedbfdf276837eeaa759c5
1 // RUN: %clang_cc1 -triple m68k-linux-gnu -emit-llvm -o - %s | FileCheck %s
3 class A {
4 public:
5 // CHECK: define{{.*}} m68k_rtdcc void @_ZN1A6memberEv
6 void __attribute__((m68k_rtd)) member() {}
7 };
9 void test() {
10 A a;
11 a.member();
13 // CHECK: define{{.*}} m68k_rtdcc void @"_ZZ4testvENK3$_0clEi"
14 auto f = [](int b) __attribute__((m68k_rtd)) {};
15 f(87);