diff options
author | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | c72c57c9e9b69944e3e009cd5e209634839581d3 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/Sema/complex-imag.c | |
parent | 5b20025c30d23d521e12c1f33ec8fa6b821952cd (diff) | |
download | FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.zip FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.tar.gz |
Vendor import of clang trunk r178860:
http://llvm.org/svn/llvm-project/cfe/trunk@178860
Diffstat (limited to 'test/Sema/complex-imag.c')
-rw-r--r-- | test/Sema/complex-imag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/complex-imag.c b/test/Sema/complex-imag.c index 1c6fb15..deaf627 100644 --- a/test/Sema/complex-imag.c +++ b/test/Sema/complex-imag.c @@ -4,7 +4,7 @@ void f1() { int a = 1; int b = __imag a; int *c = &__real a; - int *d = &__imag a; // expected-error {{must be an lvalue}} + int *d = &__imag a; // expected-error {{cannot take the address of an rvalue of type 'int'}} } void f2() { @@ -18,7 +18,7 @@ void f3() { double a = 1; double b = __imag a; double *c = &__real a; - double *d = &__imag a; // expected-error {{must be an lvalue}} + double *d = &__imag a; // expected-error {{cannot take the address of an rvalue of type 'double'}} } void f4() { |