diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-30 22:53:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-30 22:53:42 +0000 |
| commit | 595db86c9dc8d5fea20de1ae7387d7f030cb7ab8 (patch) | |
| tree | 9b56e54e1a06eed613977762e168c82ecb17a33b /clang/test/CodeGen/complex.c | |
| parent | c2dbfee43f87012155fd860e6f67051af817a677 (diff) | |
| download | bcm5719-llvm-595db86c9dc8d5fea20de1ae7387d7f030cb7ab8.tar.gz bcm5719-llvm-595db86c9dc8d5fea20de1ae7387d7f030cb7ab8.zip | |
__real__ and __imag__ can be lvalues. Add support to ast and codegen for them.
llvm-svn: 43525
Diffstat (limited to 'clang/test/CodeGen/complex.c')
| -rw-r--r-- | clang/test/CodeGen/complex.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/complex.c b/clang/test/CodeGen/complex.c index 3ac04218cce..0cc002bc6d6 100644 --- a/clang/test/CodeGen/complex.c +++ b/clang/test/CodeGen/complex.c @@ -37,3 +37,12 @@ void test3() { g1 = g1 + D; g1 = D + g1; } + +void t1() { + (__real__ cf) = 4.0; +} + +void t2() { + (__imag__ cf) = 4.0; +} + |

