1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include <cstring> 10 11 template <typename T> 12 class Foo 13 { 14 public: 15 Foo () : object() {} 16 Foo (T x) : object(x) {} 17 T getObject() { return object; } 18 private: 19 T object; 20 }; 21 22 23 int main (int argc, char const *argv[]) 24 { 25 Foo<int> foo_x('a'); 26 Foo<wchar_t> foo_y(L'a'); 27 const wchar_t *mazeltov = L"מזל טוב"; 28 wchar_t *ws_NULL = nullptr; 29 wchar_t *ws_empty = L""; 30 wchar_t array[200], * array_source = L"Hey, I'm a super wchar_t string, éõñž"; 31 wchar_t wchar_zero = (wchar_t)0; 32 memcpy(array, array_source, 39 * sizeof(wchar_t)); 33 return 0; // Set break point at this line. 34 } 35