Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / nrvo-noreturn.cpp
bloba8259cab5f306d510fce7ed8fe22d275b1bd6b57
1 // RUN: %clang_cc1 -emit-llvm-only %s
2 // PR9178
4 void abort() __attribute__((__noreturn__));
5 struct CoinModelLink {
6 CoinModelLink();
7 ~CoinModelLink();
8 };
9 class CoinModel {
10 CoinModelLink firstInQuadraticColumn();
12 CoinModelLink CoinModel::firstInQuadraticColumn() {
13 abort();
14 CoinModelLink x;
15 return x;