File: subst_bug2.py

package info (click to toggle)
preprocess 1.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 472 kB
  • ctags: 218
  • sloc: python: 1,640; cpp: 260; makefile: 31; fortran: 24
file content (13 lines) | stat: -rw-r--r-- 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!python
# Test that substitution does NOT happen in strings. In current
# preprocess.py it *does* (hence this test is currently expected to
# fail). However, the long term goal is to understand languages' string
# tokens and skip them for substitution.

# #define VAR foo

if __name__ == '__main__':
    foo = 1
    # The V-A-R should _not_ be substituted in the string.
    print "VAR is", VAR