forked from OSchip/llvm-project
Extend the noexcept expression test to test noexcept specification functions.
llvm-svn: 127693
This commit is contained in:
parent
c34c29f661
commit
52ddca23a7
|
@ -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)();
|
||||
|
|
Loading…
Reference in New Issue