xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/use-noexcept-error.cpp (revision 89a1d03e2b379e325daa5249411e414bbd995b5e)
1 // RUN: %check_clang_tidy -expect-clang-tidy-error %s modernize-use-noexcept %t
2 
3 // We're not interested in the check issuing a warning here, just making sure
4 // clang-tidy doesn't assert.
5 undefined_type doesThrow() throw();
6 // CHECK-MESSAGES: :[[@LINE-1]]:1: error: unknown type name 'undefined_type' [clang-diagnostic-error]
7