diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-03-07 20:17:55 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-03-07 20:17:55 +0000 |
| commit | 4663a3368d5f562e788573bef6e3a78c46e8d1de (patch) | |
| tree | 3ae37fe55114bf1855f1fbc7e19658cdfb6a6bff /clang/test/CodeGenObjC | |
| parent | 03676f557cc6d79c2d6b1a9e196b20f542352362 (diff) | |
| download | bcm5719-llvm-4663a3368d5f562e788573bef6e3a78c46e8d1de.tar.gz bcm5719-llvm-4663a3368d5f562e788573bef6e3a78c46e8d1de.zip | |
Make constant emission for @encode use the common string emission code.
This is a bit cleaner, and also "fixes" bad code that compares the
addresses of the string constants.
llvm-svn: 66346
Diffstat (limited to 'clang/test/CodeGenObjC')
| -rw-r--r-- | clang/test/CodeGenObjC/encode-test-4.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/encode-test-4.m b/clang/test/CodeGenObjC/encode-test-4.m new file mode 100644 index 00000000000..4d39a532d2e --- /dev/null +++ b/clang/test/CodeGenObjC/encode-test-4.m @@ -0,0 +1,5 @@ +// RUN: clang -emit-llvm -o - %s -O2 | grep "ret i32 1" + +int a() { + return @encode(int) == @encode(int); +} |

