mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 07:56:06 +00:00

The lit.cfg files only add .cpp to suffixes, so these tests used to never run, oops. (Also tweak to of these tests in minor ways to make the actually pass.) llvm-svn: 224718
10 lines
229 B
C++
10 lines
229 B
C++
// REQUIRES: asserts
|
|
// RUN: not %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s 2>&1 | FileCheck %s
|
|
|
|
struct {
|
|
void __attribute__((used)) f() {}
|
|
};
|
|
// CHECK: 2 errors generated.
|
|
|
|
// Emit the errors, but don't assert.
|