aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/cpp/static-namespace-functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/cpp/static-namespace-functions.cpp')
-rw-r--r--tests/query/highlights/cpp/static-namespace-functions.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/query/highlights/cpp/static-namespace-functions.cpp b/tests/query/highlights/cpp/static-namespace-functions.cpp
new file mode 100644
index 000000000..1658d5117
--- /dev/null
+++ b/tests/query/highlights/cpp/static-namespace-functions.cpp
@@ -0,0 +1,12 @@
+// Issue #2396
+
+int main()
+{
+ B::foo();
+ // ^ @function
+ Foo::A::foo();
+ // ^ @function
+ Foo::a::A::foo();
+ // ^ @function
+ return 0;
+}