https://github.com/Kitware/CMake
Raw File
Tip revision: 650c630a663b2d0663e6ef6acda2a5fb94e5a621 authored by Brad King on 16 September 2015, 15:46:31 UTC
CMake 3.3.2
Tip revision: 650c630
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