teak-llvm/clang/test/Index/complete-enums.c
Douglas Gregor cf04b02d1d Extend the type printing policy to allow one to turn off the printing
of file locations for anonymous tag types (e.g., "enum <anonymous at
t.h:15:6>"), which can get rather long.

llvm-svn: 100470
2010-04-05 21:25:31 +00:00

16 lines
320 B
C

// Note: the run lines follow their respective tests, since line/column
// matter in this test.
enum {
Red = 17,
Green,
Blue
};
void f() {
}
// RUN: c-index-test -code-completion-at=%s:11:1 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: EnumConstantDecl:{ResultType enum <anonymous>}{TypedText Red}