Douglas Gregor | 797efb5 | 2010-07-14 17:44:04 +0000 | [diff] [blame] | 1 | #include <reserved.h> |
Douglas Gregor | 791215b | 2009-09-21 20:51:25 +0000 | [diff] [blame] | 2 | struct X { int x; }; |
Douglas Gregor | 6a68403 | 2009-09-28 03:51:44 +0000 | [diff] [blame] | 3 | typedef struct t TYPEDEF; |
Douglas Gregor | 797efb5 | 2010-07-14 17:44:04 +0000 | [diff] [blame] | 4 | typedef struct t _TYPEDEF; |
Douglas Gregor | 791215b | 2009-09-21 20:51:25 +0000 | [diff] [blame] | 5 | void foo() { |
| 6 | int y; |
Douglas Gregor | 797efb5 | 2010-07-14 17:44:04 +0000 | [diff] [blame] | 7 | // 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 Gregor | ab0b4f1 | 2010-01-13 23:24:38 +0000 | [diff] [blame] | 12 | // CHECK-CC1: foo |
Douglas Gregor | ab0b4f1 | 2010-01-13 23:24:38 +0000 | [diff] [blame] | 13 | // CHECK-CC1: TYPEDEF |
Douglas Gregor | 797efb5 | 2010-07-14 17:44:04 +0000 | [diff] [blame] | 14 | // CHECK-CC1: y |
Douglas Gregor | 25bb03b | 2010-12-09 23:35:36 +0000 | [diff] [blame] | 15 | |
| 16 | // PR8744 |
| 17 | // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:1:11 %s |