aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/microsoft-uuidof-unsupported-target.cpp
blob: 4f68aa34772c9b3627f24935a430065d691bc765 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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}}