summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/i-c-e-cxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/i-c-e-cxx.cpp')
-rw-r--r--clang/test/SemaCXX/i-c-e-cxx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/i-c-e-cxx.cpp b/clang/test/SemaCXX/i-c-e-cxx.cpp
index 4f2f1974678..e8275d463de 100644
--- a/clang/test/SemaCXX/i-c-e-cxx.cpp
+++ b/clang/test/SemaCXX/i-c-e-cxx.cpp
@@ -37,3 +37,8 @@ namespace pr6206 {
return str[0];
}
}
+
+// PR6373: default arguments don't count.
+void pr6373(const unsigned x = 0) {
+ unsigned max = 80 / x;
+}
OpenPOWER on IntegriCloud