mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 19:29:50 +08:00
Opps. Copied in the wrong file for initial commit.
From-SVN: r24625
This commit is contained in:
parent
a5cad80034
commit
5ad9818511
@ -1,5 +1,21 @@
|
||||
foo(char *bufp)
|
||||
unsigned calc_mp(unsigned mod)
|
||||
{
|
||||
int x = 80;
|
||||
return (*bufp++ = x ? 'a' : 'b');
|
||||
unsigned a,b,c;
|
||||
c=-1;
|
||||
a=c/mod;
|
||||
b=0-a*mod;
|
||||
if (b > mod) { a += 1; b-=mod; }
|
||||
return b;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
unsigned x = 1234;
|
||||
unsigned y = calc_mp(x);
|
||||
|
||||
if (y != 680)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user