Extend the noexcept expression test to test noexcept specification functions.

llvm-svn: 127693
This commit is contained in:
Sebastian Redl 2011-03-15 20:45:42 +00:00
parent c34c29f661
commit 52ddca23a7
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@ void allspec() throw(...);
void intspec() throw(int);
void emptyspec() throw();
void nothrowattr() __attribute__((nothrow));
void noexcept_true() noexcept;
void noexcept_false() noexcept(false);
void call() {
N(nospec());
@ -27,6 +29,8 @@ void call() {
N(intspec());
P(emptyspec());
P(nothrowattr());
P(noexcept_true());
N(noexcept_false());
}
void (*pnospec)();