summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/wchar_t/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/cpp/wchar_t/main.cpp')
-rw-r--r--lldb/test/lang/cpp/wchar_t/main.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/lldb/test/lang/cpp/wchar_t/main.cpp b/lldb/test/lang/cpp/wchar_t/main.cpp
new file mode 100644
index 00000000000..9dbfb3d114a
--- /dev/null
+++ b/lldb/test/lang/cpp/wchar_t/main.cpp
@@ -0,0 +1,27 @@
+//===-- main.c --------------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+template <typename T>
+class Foo
+{
+public:
+ Foo () : object() {}
+ Foo (T x) : object(x) {}
+ T getObject() { return object; }
+private:
+ T object;
+};
+
+
+int main (int argc, char const *argv[])
+{
+ Foo<int> foo_x('a');
+ Foo<wchar_t> foo_y(L'a');
+ return 0; // Set break point at this line.
+}
OpenPOWER on IntegriCloud