summaryrefslogtreecommitdiff
path: root/js/src/analysis-tests/red-togreenptr-initializer-nested.cpp
blob: d4e4815dcf594b25185ba06db385b85e928cd855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "jstypes.h"

void GreenFunc();
JS_REQUIRES_STACK void RedFunc();

typedef void (*GreenFuncPtr)();

struct S
{
  int i;
  GreenFuncPtr p;
};

S sa[] = {
  { 2, GreenFunc },
  { 1, RedFunc },
};