diff options
Diffstat (limited to 'test/PCH/uuidof.cpp')
-rw-r--r-- | test/PCH/uuidof.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/PCH/uuidof.cpp b/test/PCH/uuidof.cpp new file mode 100644 index 000000000000..207a8dafee3b --- /dev/null +++ b/test/PCH/uuidof.cpp @@ -0,0 +1,9 @@ +// 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 |