https://github.com/Kitware/CMake
Raw File
Tip revision: 567e4e681ce6fc4a384692626288bc0be688b8a2 authored by Brad King on 16 April 2014, 17:24:46 UTC
CMake 3.0.0-rc4
Tip revision: 567e4e6
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