summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp')
-rw-r--r--test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp b/test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp
new file mode 100644
index 0000000..4f68aa3
--- /dev/null
+++ b/test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-macosx10.8.0 -fms-extensions -verify
+
+typedef struct _GUID
+{
+ unsigned long Data1;
+ unsigned short Data2;
+ unsigned short Data3;
+ unsigned char Data4[8];
+} GUID;
+
+struct __declspec(uuid("87654321-4321-4321-4321-ba0987654321")) S { };
+
+GUID g = __uuidof(S); // expected-error {{__uuidof codegen is not supported on this architecture}}
OpenPOWER on IntegriCloud