Sign in
gem5
/
public
/
gem5-resources
/
8ccd059d5dcaaeffe15cd93c17f1e76e92907662
/
.
/
src
/
parsec
/
disk-image
/
parsec
/
parsec-benchmark
/
pkgs
/
tools
/
cmake
/
src
/
Tests
/
SetLang
/
bar.c
blob: f59c318b181d85165828ad14fb3be83b8be4f6e6 [
file
] [
log
] [
blame
]
#include
<stdio.h>
int
foo
();
class
A
{
public
:
A
()
{
this
->
i
=
foo
();}
int
i
;
};
int
main
()
{
A a
;
if
(
a
.
i
==
21
)
{
printf
(
"passed foo is 21\n"
);
return
0
;
}
printf
(
"Failed foo is not 21\n"
);
return
-
1
;
}