mirror of
https://github.com/reactos/CMake.git
synced 2024-12-11 13:24:58 +00:00
22 lines
234 B
C
22 lines
234 B
C
#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;
|
|
}
|