diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-04-05 21:25:31 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-04-05 21:25:31 +0000 |
| commit | cf04b02d1d099ecf6068228043383c61df9f7c84 (patch) | |
| tree | 293c7583f1662d23a37867ef0ec497719d533c94 /clang/test/Index/complete-enums.c | |
| parent | 6e085c1efec8e05942b2c7e79b9e708dc8bb5ec2 (diff) | |
| download | bcm5719-llvm-cf04b02d1d099ecf6068228043383c61df9f7c84.tar.gz bcm5719-llvm-cf04b02d1d099ecf6068228043383c61df9f7c84.zip | |
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
Diffstat (limited to 'clang/test/Index/complete-enums.c')
| -rw-r--r-- | clang/test/Index/complete-enums.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Index/complete-enums.c b/clang/test/Index/complete-enums.c new file mode 100644 index 00000000000..5e712a11227 --- /dev/null +++ b/clang/test/Index/complete-enums.c @@ -0,0 +1,15 @@ +// 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} |

