David Majnemer 2041b46b76 Fix serialization/deserialization for __uuidof
I broke this back in r264529 because I forgot to serialize the UuidAttr
member.  Fix this by replacing the UuidAttr with a StringRef which is
properly serialized and deserialized.

llvm-svn: 264562
2016-03-28 03:19:50 +00:00

10 lines
310 B
C++

// RUN: %clang_cc1 -fms-extensions -x c++-header -emit-pch -o %t %s
// RUN: %clang_cc1 -fms-extensions -include-pch %t -fsyntax-only %s -emit-llvm -o - | FileCheck %s
#ifndef HEADER
#define HEADER
struct _GUID {};
const _GUID &x = __uuidof(0);
// CHECK-DAG: @_GUID_00000000_0000_0000_0000_000000000000
#endif