diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-23 21:34:38 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-23 21:34:38 +0000 |
| commit | c1b7acbaebeae197eb3d260d7b0fc83a7dbe9915 (patch) | |
| tree | 0b4107241171426bf29549836ba770f4c08e8620 /clang/test | |
| parent | b4331a990859f0ca3995f1736eb3d05a85b7a60e (diff) | |
| download | bcm5719-llvm-c1b7acbaebeae197eb3d260d7b0fc83a7dbe9915.tar.gz bcm5719-llvm-c1b7acbaebeae197eb3d260d7b0fc83a7dbe9915.zip | |
Fixes a rewriting of qualified-id type which exposed a bigger
rewriting problem. Fixes radar 7680953.
llvm-svn: 96987
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Rewriter/rewrite-qualified-id.mm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/Rewriter/rewrite-qualified-id.mm b/clang/test/Rewriter/rewrite-qualified-id.mm new file mode 100644 index 00000000000..fe3607d41d0 --- /dev/null +++ b/clang/test/Rewriter/rewrite-qualified-id.mm @@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp +// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp +// radar 7680953 + +typedef void * id; + +@protocol foo +@end + +@interface CL +{ + id <foo> changeSource; + CL <foo>* changeSource1; +} +@end + +typedef struct x +{ + id <foo> changeSource; +} x; + |

