Douglas Gregor | 791215b | 2009-09-21 20:51:25 +0000 | [diff] [blame] | 1 | struct X { int x; }; |
| 2 | |
Douglas Gregor | 6a68403 | 2009-09-28 03:51:44 +0000 | [diff] [blame] | 3 | typedef struct t TYPEDEF; |
Douglas Gregor | 791215b | 2009-09-21 20:51:25 +0000 | [diff] [blame] | 4 | |
| 5 | void foo() { |
| 6 | int y; |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 7 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | 119fa68 | 2009-09-24 22:57:42 +0000 | [diff] [blame] | 8 | // CHECK-CC1: y : 0 |
Douglas Gregor | 119fa68 | 2009-09-24 22:57:42 +0000 | [diff] [blame] | 9 | // CHECK-CC1: foo : 2 |
Douglas Gregor | 6a68403 | 2009-09-28 03:51:44 +0000 | [diff] [blame] | 10 | // CHECK-NOT-CC1: y : 2 |
| 11 | // CHECK-CC1-NEXT: TYPEDEF : 2 |