diff --git a/Makefile.am b/Makefile.am
index 17315e174..f95cbd0c3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1276,7 +1276,7 @@ endif
 
 if ENABLE_VORBIS_ENCODER
 noinst_PROGRAMS += test/test_vorbis_encoder
-test_test_vorbis_encoder_SOURCES = test/test_vorbis_encoder.c \
+test_test_vorbis_encoder_SOURCES = test/test_vorbis_encoder.cxx \
 	test/stdbin.h \
 	src/tokenizer.c src/utils.c src/string_util.c \
 	src/Tag.cxx src/TagNames.c src/TagPool.cxx \
diff --git a/test/test_vorbis_encoder.c b/test/test_vorbis_encoder.cxx
similarity index 97%
rename from test/test_vorbis_encoder.c
rename to test/test_vorbis_encoder.cxx
index 619399159..887fd1a77 100644
--- a/test/test_vorbis_encoder.c
+++ b/test/test_vorbis_encoder.cxx
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003-2012 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
  * http://www.musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify