https://github.com/Kitware/CMake
Raw File
Tip revision: 6d01a8e004c5faf2d0b2c3b7c0645ce3726181b6 authored by Brad King on 30 September 2019, 18:01:30 UTC
CMake 3.14.7
Tip revision: 6d01a8e
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