blob: 680d6dc989c792ca8fae1e934146f0a44951c190 [file] [log] [blame]
Douglas Gregor791215b2009-09-21 20:51:25 +00001struct X { int x; };
2
Douglas Gregor6a684032009-09-28 03:51:44 +00003typedef struct t TYPEDEF;
Douglas Gregor791215b2009-09-21 20:51:25 +00004
5void foo() {
6 int y;
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00007 // RUN: clang-cc -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
Douglas Gregor119fa682009-09-24 22:57:42 +00008 // CHECK-CC1: y : 0
Douglas Gregor119fa682009-09-24 22:57:42 +00009 // CHECK-CC1: foo : 2
Douglas Gregor6a684032009-09-28 03:51:44 +000010 // CHECK-NOT-CC1: y : 2
11 // CHECK-CC1-NEXT: TYPEDEF : 2