2007-12-13 Douglas Gregor <doug.gregor@gmail.com>
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Dec 2007 19:29:52 +0000 (19:29 +0000)
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Dec 2007 19:29:52 +0000 (19:29 +0000)
* g++.dg/cpp0x/__func__.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130911 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/__func__.C [new file with mode: 0644]

index 234c425..fc93202 100644 (file)
@@ -1,3 +1,7 @@
+2007-12-13  Douglas Gregor  <doug.gregor@gmail.com>
+
+       * g++.dg/cpp0x/__func__.C: New.
+
 2007-12-13  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/34435
diff --git a/gcc/testsuite/g++.dg/cpp0x/__func__.C b/gcc/testsuite/g++.dg/cpp0x/__func__.C
new file mode 100644 (file)
index 0000000..1ac9065
--- /dev/null
@@ -0,0 +1,6 @@
+// { dg-options "-std=c++0x -pedantic" }
+
+const char* foo()
+{
+  return __func__;
+}