summaryrefslogtreecommitdiffstats
path: root/test/Index/targeted-top.h
blob: 0f3c97586e41fa3c8cb8d6564b562919564809c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#ifndef TARGETED_TOP_H
#define TARGETED_TOP_H

#include "targeted-nested1.h"

enum {
  VALUE = 3
};

extern int TopVar;

typedef struct {
  int x;
  int y;
#include "targeted-fields.h"
} Vector;

static inline int vector_get_x(Vector v) {
  int x = v.x;
  return x;
}

#endif