comparison clang/test/CodeGen/xcore-unused-inline.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
1 // REQUIRES: xcore-registered-target
2 // RUN: %clang_cc1 -triple xcore-unknown-unknown -emit-llvm -o - %s
3
4 // D77068 fixes a segmentation fault and assertion failure "Unexpected null
5 // Value" in the case of an unused inline function, when targeting xcore. This
6 // test verifies that clang does not crash and does not produce code for such a
7 // function.
8
9 inline void dead_function(void) {}