https://github.com/Kitware/CMake
Raw File
Tip revision: 1f6f114a7a61043ec0b9d6147f3b297081d214d5 authored by Brad King on 08 December 2014, 14:09:24 UTC
CMake 3.1.0-rc3
Tip revision: 1f6f114
bar.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;
}
back to top