aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/expr-address-of.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-03 21:54:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-03 21:54:21 +0000
commit33ad0120264da35db85ff8cccee5f08da6a7fbeb (patch)
tree2efbeb72463ff1eebe23675733a2f6691d1d387f /test/Sema/expr-address-of.c
parentea644d8440479359ea2480d458e3751a6bfae123 (diff)
Set register storage class correctly for function parameters.
- PR2730 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/expr-address-of.c')
-rw-r--r--test/Sema/expr-address-of.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/expr-address-of.c b/test/Sema/expr-address-of.c
index 20390429dd..58bc540a30 100644
--- a/test/Sema/expr-address-of.c
+++ b/test/Sema/expr-address-of.c
@@ -86,3 +86,6 @@ void f5() {
int *_dummy1 = &(arr + 1); // expected-error {{address expression must be an lvalue or a function designator}}
}
+void f6(register int x) {
+ int * dummy0 = &x; // expected-error {{address of register variable requested}}
+}