Debian Codegraph @

gcc/testsuite/g++.dg/opt/vrp3-aux.cc

raw
1 // { dg-do compile }
2 // { dg-options "" }
3
4 #include "vrp3.h"
5
6 R::R ()
7 {
8 r1 = r2 = 1;
9 }
10
11 R::R (int n, int d)
12 {
13 r1 = n;
14 r2 = d;
15 }
16
17 int
18 R::compare (R const &r, R const &s)
19 {
20 return (int) (r.r1 * s.r2 - s.r1 * r.r2);
21 }