xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/pr21989.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // REQUIRES: asserts
2*0a6a1f1dSLionel Sambuc // RUN: not %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s 2>&1 | FileCheck %s
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc struct {
f__anon57a9067c01085*0a6a1f1dSLionel Sambuc   void __attribute__((used)) f() {}
6*0a6a1f1dSLionel Sambuc };
7*0a6a1f1dSLionel Sambuc // CHECK: 2 errors generated.
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc // Emit the errors, but don't assert.
10