diff options
| -rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/refs4.C | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/refs4.C b/gcc/testsuite/g++.old-deja/g++.law/refs4.C index 13349ef..7842436 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/refs4.C +++ b/gcc/testsuite/g++.old-deja/g++.law/refs4.C @@ -2,8 +2,7 @@ // execution test -#include <stdio.h> -#include <stdlib.h> +int r; const int& min(const int& tX, const int& tY) { @@ -13,13 +12,13 @@ const int& min(const int& tX, const int& tY) void foo(const int m, const int n) { if (m == 1 && n == 100) - printf("PASS\n"); + /* OK */; else - abort (); + r = 1; } int main() { foo(min(2, 1), min(100, 200)); - return 0; + return r; } |
