Commit 16a8282c by Jason Merrill

simplify

From-SVN: r34417
parent a7833bec
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
// execution test // execution test
#include <stdio.h> int r;
#include <stdlib.h>
const int& min(const int& tX, const int& tY) const int& min(const int& tX, const int& tY)
{ {
...@@ -13,13 +12,13 @@ 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) void foo(const int m, const int n)
{ {
if (m == 1 && n == 100) if (m == 1 && n == 100)
printf("PASS\n"); /* OK */;
else else
abort (); r = 1;
} }
int main() int main()
{ {
foo(min(2, 1), min(100, 200)); foo(min(2, 1), min(100, 200));
return 0; return r;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment