repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr94920-1.C
blob
f8fa14a537ad6c820e5f0689cd836d2875fcdd82
1
/* PR tree-optimization/94920 */
2
/* { dg-additional-options "-Wno-psabi" } */
3
/* { dg-do run } */
4
5
#include "pr94920.C"
6
7
int main() {
8
9
if (foo(0) != 0
10
|| foo(-42) != 42
11
|| foo(42) != 42
12
|| baz(-10) != 10
13
|| baz(-10) != 10) {
14
__builtin_abort();
15
}
16
17
return 0;
18
}