--- /dev/null
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use Test::More tests => 3;
+
+BEGIN {
+ use_ok('Class::MOP');
+}
+
+{
+ package Foo;
+ use constant FOO => 'bar';
+}
+
+my $meta = Class::MOP::Class->initialize('Foo');
+
+my %syms = $meta->get_all_package_symbols('CODE');
+is(ref $syms{FOO}, 'CODE', 'get constant symbol');
+
+undef %syms;
+
+%syms = $meta->get_all_package_symbols('CODE');
+is(ref $syms{FOO}, 'CODE', 'constant symbol still there, although we dropped our reference');