aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Headers/unwind.h2
-rw-r--r--test/Headers/unwind.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h
index a0659203b1..6520b8316f 100644
--- a/lib/Headers/unwind.h
+++ b/lib/Headers/unwind.h
@@ -100,7 +100,7 @@ typedef enum {
_UVRSR_FAILED = 2
} _Unwind_VRS_Result;
-_Unwind_VRS_Result _Unwind_VRS_Get(_Unwind_Context *context,
+_Unwind_VRS_Result _Unwind_VRS_Get(struct _Unwind_Context *context,
_Unwind_VRS_RegClass regclass,
uint32_t regno,
_Unwind_VRS_DataRepresentation representation,
diff --git a/test/Headers/unwind.c b/test/Headers/unwind.c
new file mode 100644
index 0000000000..2aec9d4c2d
--- /dev/null
+++ b/test/Headers/unwind.c
@@ -0,0 +1,6 @@
+// RUN: %clang -target arm-unknown-linux-gnueabi %s -fsyntax-only -o -
+// RUN: %clang -target i686-unknown-linux %s -fsyntax-only -o -
+
+#include "unwind.h"
+// CHECK-NOT: error
+// CHECK-NOT: warning