blob: dda7bb018a0f9f702f8c5cfd490be62216db4353 [file] [log] [blame]
Douglas Gregor797efb52010-07-14 17:44:04 +00001#include <reserved.h>
Douglas Gregor791215b2009-09-21 20:51:25 +00002struct X { int x; };
Douglas Gregor6a684032009-09-28 03:51:44 +00003typedef struct t TYPEDEF;
Douglas Gregor797efb52010-07-14 17:44:04 +00004typedef struct t _TYPEDEF;
Douglas Gregor791215b2009-09-21 20:51:25 +00005void foo() {
6 int y;
Douglas Gregor797efb52010-07-14 17:44:04 +00007 // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
8 // CHECK-CC1: _Imaginary
9 // CHECK-CC1-NOT: _INTEGER_TYPE;
10 // CHECK-CC1: _TYPEDEF
11 // CHECK-CC1: FLOATING_TYPE
Douglas Gregorab0b4f12010-01-13 23:24:38 +000012 // CHECK-CC1: foo
Douglas Gregorab0b4f12010-01-13 23:24:38 +000013 // CHECK-CC1: TYPEDEF
Douglas Gregor797efb52010-07-14 17:44:04 +000014 // CHECK-CC1: y
Douglas Gregor25bb03b2010-12-09 23:35:36 +000015
16 // PR8744
17 // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:1:11 %s