Sha256: 4bba1bf3ebd27eabc1d9f3faa60a31ce7315b81fc06dadd6bc51a15dadc9f1a5

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

#include <stdio.h>

typedef int (*int2ptr)[2];
typedef int (*(*int2ptr_func)(void))[2];

static int (*foo(void))[2] {
  static int foo_arr[2] = {1, 2};
  return &foo_arr;
}

int2ptr (*baz)(void) = foo;
int2ptr_func bar = foo;

int main(void) {
  int (*arr)[] = foo();
  printf("array[0] = %d\n", (*arr)[0]);
  printf("array[1] = %d\n", (*arr)[1]);
  return 0;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctags.rb-1.1.4 ext/vendor/ctags/Units/parser-cxx.r/pointer-to-array.d/input.c
ctags.rb-1.1.3 ext/vendor/ctags/Units/parser-cxx.r/pointer-to-array.d/input.c