aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/complex-imag.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/complex-imag.c')
-rw-r--r--test/Sema/complex-imag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/complex-imag.c b/test/Sema/complex-imag.c
index 1c6fb159bc1e..deaf62775336 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() {