[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / xcore-unused-inline.c
blob8b5bdbf2ed6dea73bee581ad76412ba4cf716a6b
1 // REQUIRES: xcore-registered-target
2 // RUN: %clang_cc1 -triple xcore-unknown-unknown -emit-llvm -o - %s
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.
9 inline void dead_function(void) {}