https://github.com/Kitware/CMake
Raw File
Tip revision: 4c82f309c59d02899145bc25c0e9efc91a6f64ed authored by Brad King on 10 April 2020, 11:37:32 UTC
CMake 3.16.6
Tip revision: 4c82f30
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