summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_attribute_deprecated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CompileFeatures/cxx_attribute_deprecated.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_attribute_deprecated.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_attribute_deprecated.cpp b/Tests/CompileFeatures/cxx_attribute_deprecated.cpp
new file mode 100644
index 0000000..b6f307d
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_attribute_deprecated.cpp
@@ -0,0 +1,11 @@
+
+[[deprecated]]
+int foo()
+{
+ return 0;
+}
+
+int someFunc()
+{
+ return foo();
+}