OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR tree-optimization/53239
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
vrp3-aux.cc
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
}