From 16a8282ca18206866b067a95ee51802ae526e963 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 5 Jun 2000 20:17:32 -0400 Subject: [PATCH] simplify From-SVN: r34417 --- gcc/testsuite/g++.old-deja/g++.law/refs4.C | 9 ++++----- 1 file 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 13349ef1365..7842436b3ce 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 -#include +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; }