https://github.com/Kitware/CMake
Raw File
Tip revision: 6b9172d759b5f00069e7d2c65f1c649d4a3b0a70 authored by Brad King on 19 March 2018, 13:25:26 UTC
CMake 3.11.0-rc4
Tip revision: 6b9172d
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