Sha256: c0d9aee7e9168511555f2f34172313dd666569dc9f3bf7e9a2deec7d5c65861b

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

struct A {
  virtual int func_a() = 0;
  int int_member_a;
};

struct B : public virtual A {
  int func_a() { return 0; }

  static int func_b() { return 11; }
};

struct C : public virtual A {
  int func_a() { return 1; }

  enum { EnumC = 100 };
};

struct D : public B, public C {
 private:
  int func_a() { return B::func_a(); }
  void func_d();

  int private_member_int;
 public:
  int public_member_int;
 protected:
  int protected_member_int;
};

void D::func_d() {};
f_dynamic_call(A *a) { a->func_a(); };

void f_variadic(int a, ...);
void f_non_variadic(int a, char b, long c);

typedef int const* const_int_ptr;
int int_array[8];

struct RefQualifier {
    void func_lvalue_ref() &;
    void func_rvalue_ref() &&;
    void func_none();
};

int A::*member_pointer = &A::int_member_a;

struct BitField {
  int bit_field_a : 2;
  int bit_field_b : 6;
  int non_bit_field_c;
};

enum normal_enum {
  normal_enum_a
};

template <typename T> T func_overloaded(T a) { return a;};
template <typename T> T func_overloaded() { return 100;};
template <typename T> T use_func_overloaded() { return func_overloaded<T>(); };
int use_overloaded_int_a = func_overloaded<int>();

void availability_func(void) __attribute__((availability(macosx,introduced=10.4.1,deprecated=10.6,obsoleted=10.7)));

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ffi-clang-0.7.0 spec/ffi/clang/fixtures/test.cxx
ffi-clang-0.6.0 spec/ffi/clang/fixtures/test.cxx
ffi-clang-0.5.0 spec/ffi/clang/fixtures/test.cxx
ffi-clang-0.3.0 spec/fixtures/test.cxx
ffi-clang-0.2.1 spec/fixtures/test.cxx
ghazel-ffi-clang-0.2.1 spec/fixtures/test.cxx
ghazel-ffi-clang-0.2.0.2 spec/fixtures/test.cxx
ghazel-ffi-clang-0.2.0.1 spec/fixtures/test.cxx