diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-19 21:58:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-19 21:58:23 +0000 |
commit | 8aaca67b0ace63b1f87c0bcfb9054ed57ac9d206 (patch) | |
tree | 9112c2c3c91ef871c0ef34f1860ff6b65bdc5d2a /clang/test/Index/c-index-getCursor-test.m | |
parent | 2db7abaa446dc7412a2d3552bdbcbb78dbce398a (diff) | |
download | bcm5719-llvm-8aaca67b0ace63b1f87c0bcfb9054ed57ac9d206.tar.gz bcm5719-llvm-8aaca67b0ace63b1f87c0bcfb9054ed57ac9d206.zip |
Robustify PreprocessingRecord slightly, by only creating macro
instantiations when we have the corresponding macro definition and by
removing macro definition information from our table when the macro is
undefined.
llvm-svn: 99004
Diffstat (limited to 'clang/test/Index/c-index-getCursor-test.m')
-rw-r--r-- | clang/test/Index/c-index-getCursor-test.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Index/c-index-getCursor-test.m b/clang/test/Index/c-index-getCursor-test.m index 52e19dffb3a..3cf1b6dcfa0 100644 --- a/clang/test/Index/c-index-getCursor-test.m +++ b/clang/test/Index/c-index-getCursor-test.m @@ -57,6 +57,7 @@ int main (int argc, const char * argv[]) { void f() { int CONCAT(my,_var); } +#undef CONCAT // CHECK: [1:1 - 3:1] Invalid Cursor => NoDeclFound // CHECK: [3:1 - 7:1] ObjCInterfaceDecl=Foo:3:12 |