Nico Weber | 1598289 | 2012-06-25 22:30:41 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fms-extensions -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s |
2 | |||||
3 | // CHECK: @L__FUNCTION__._Z4funcv = private constant [5 x i16] [i16 102, i16 117, i16 110, i16 99, i16 0], align 2 | ||||
4 | |||||
5 | void wprint(const wchar_t*); | ||||
6 | |||||
7 | #define __STR2WSTR(str) L##str | ||||
8 | #define _STR2WSTR(str) __STR2WSTR(str) | ||||
9 | #define STR2WSTR(str) _STR2WSTR(str) | ||||
10 | |||||
11 | void func() { | ||||
12 | wprint(STR2WSTR(__FUNCTION__)); | ||||
13 | } | ||||
14 | |||||
15 | int main() { | ||||
16 | func(); | ||||
17 | |||||
18 | return 0; | ||||
19 | } | ||||
20 |