forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2008-01-24 Richard Guenther <rguenther@suse.de>
PR middle-end/34953 * g++.dg/torture/pr34953.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131782 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
rguenth
committed
Jan 24, 2008
1 parent
4b53147
commit 140425b
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* { dg-do compile } */ | ||
/* { dg-options "-w" } */ | ||
|
||
void B_CLEAR(void* ret); | ||
void B_NeverReturns(void* ret) __attribute__((noreturn)); | ||
|
||
int main() | ||
{ | ||
const struct AutoErrPop { ~AutoErrPop() { } } AutoErrPopper = { }; | ||
B_NeverReturns(0); | ||
} | ||
|
||
void B_NeverReturns(void* ret) | ||
{ | ||
B_CLEAR(ret); /* Never returns (does a setjmp/goto) */ | ||
} | ||
|