https://github.com/Kitware/CMake
Raw File
Tip revision: 26a0e200e5f4abe8268235c9fdb23a2612a1b3b1 authored by Brad King on 04 September 2019, 13:50:07 UTC
CMake 3.15.3
Tip revision: 26a0e20
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